package com.yidu.drug.model;

import java.io.Serializable;
import java.util.Date;

import com.yidu.drug.common.Page;
import com.yidu.drug.common.Tools;

public class InventoryModel implements Serializable {
	/**
	 * 库存明细ID
	 */
    private String invId;

    /**
     * 库存ID
     */
    private String repId;

    /**
     * 业务ID(存放药品ID和材料ID)
     */
    private String pwId;

    /**
     * 数量
     */
    private Integer invNumber;

    /**
     * 是否有效
     */
    private String isva;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 操作时间
     */
    private Date cztime;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 批次号
     */
    private String numbers;

    /**
     * 生产日期
     */
    private Date proDate;
    
    /**
     * 分页对象
     */
    private Page pages;
    
    /**
     * 当前页数
     */
    private String page;
    
    /**
     * 每页显示的行数
     */
    private String limit;
    
    /**
     * 物品名称(存放药品名称和材料名称)
     */
    private String itemName;
    
    /**
     * 条件(用于判断是药品还是材料)
     */
    private String condition;
    
    /**
     * 时间(用于转换日期格式用的)
     */
    private String proDates;

    private static final long serialVersionUID = 1L;
    
    
    public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getInvId() {
        return invId;
    }

    public void setInvId(String invId) {
        this.invId = invId;
    }

    public String getRepId() {
        return repId;
    }

    public void setRepId(String repId) {
        this.repId = repId;
    }

    public String getPwId() {
        return pwId;
    }

    public void setPwId(String pwId) {
        this.pwId = pwId;
    }

    public Integer getInvNumber() {
        return invNumber;
    }

    public void setInvNumber(Integer invNumber) {
        this.invNumber = invNumber;
    }

    public String getIsva() {
        return isva;
    }

    public void setIsva(String isva) {
        this.isva = isva;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getCztime() {
        return cztime;
    }

    public void setCztime(Date cztime) {
        this.cztime = cztime;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getNumbers() {
        return numbers;
    }

    public void setNumbers(String numbers) {
        this.numbers = numbers;
    }

    public Date getProDate() {
        return proDate;
    }

    public void setProDate(Date proDate) {
        this.proDate = proDate;
    }

	public Page getPages() {
		return pages;
	}

	public String getPage() {
		return page;
	}

	public String getLimit() {
		return limit;
	}

	public String getItemName() {
		return itemName;
	}

	public void setPages(Page pages) {
		this.pages = pages;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public void setLimit(String limit) {
		this.limit = limit;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}

	public String getProDates() {
		return proDates = Tools.getDateStr(proDate);
	}

	public void setProDates(String proDates) {
		this.proDates = proDates;
	}
    
}